//
//  DHStatusCellBottomView.swift
//  Weibo
//
//  Created by Holfioo on 15/9/7.
//  Copyright © 2015年 Holfioo. All rights reserved.
//

import UIKit

class DHStatusCellBottomView: UIView {
    override init(frame: CGRect) {
        super.init(frame: frame)
        setupUI()
    }

    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    private func setupUI() {
        backgroundColor =  UIColor(white: 240.0/255.0, alpha: 1)
        
        addSubview(tweetBtn)
        addSubview(commentBtn)
        addSubview(likeBtn)
        // addSubview(headView)
        // 布局控件
        ff_HorizontalTile([tweetBtn, commentBtn, likeBtn], insets: UIEdgeInsetsZero)
        // headView.ff_AlignInner(type: ff_AlignType.TopLeft, referView: self, size: CGSize(width: bounds.width, height: 2))
        // bringSubviewToFront(headView)
    }
//      private lazy var headView: UIView = {
//       let v = UIView(frame: CGRect(x: 10, y: 10, width: 10, height: 10))
//        v.backgroundColor = UIColor.blackColor()
//        return v
//    }()
    private lazy var tweetBtn: UIButton = UIButton(title: " 转发", imageName: "timeline_icon_retweet", color: UIColor.darkGrayColor(), fontSize: 14)
    private lazy var commentBtn: UIButton = UIButton(title: " 评论", imageName: "timeline_icon_comment", color: UIColor.darkGrayColor(), fontSize: 14)
    private lazy var likeBtn: UIButton = UIButton(title: " 赞", imageName: "timeline_icon_unlike", color: UIColor.darkGrayColor(), fontSize: 14)
    
}